# -*- coding: utf-8 -*-
from gi.repository import Pango

def context_get_font_options(context=None):
    """    Retrieves any font rendering options previously set with
    pango_cairo_context_set_font_options(). This function does not report options
    that are derived from the target surface by pango_cairo_update_context()
    @param context: a #PangoContext, from a pangocairo font map
    @type context: Pango.Context
    @returns: the font options previously set on the
   context, or %NULL if no options have been set. This value is
   owned by the context and must not be modified or freed.
    @rtype: cairo.FontOptions
    """
    return object

def context_get_resolution(context=None):
    """    Gets the resolution for the context. See pango_cairo_context_set_resolution()
    @param context: a #PangoContext, from a pangocairo font map
    @type context: Pango.Context
    @returns: the resolution in "dots per inch". A negative value will  be returned if no resolution has previously been set.
    @rtype: float
    """
    return object

def context_get_shape_renderer(context=None, data=None):
    """    Sets callback function for context to use for rendering attributes
    of type %PANGO_ATTR_SHAPE.  See #PangoCairoShapeRendererFunc for
    details.
    
    Retrieves callback function and associated user data for rendering
    attributes of type %PANGO_ATTR_SHAPE as set by
    pango_cairo_context_set_shape_renderer(), if any.
    @param context: a #PangoContext, from a pangocairo font map
    @param data: Pointer to #gpointer to return user data
    @type context: Pango.Context
    @type data: gpointer
    @returns: the shape rendering callback previously
   set on the context, or %NULL if no shape rendering callback have
   been set.
    @rtype: ShapeRendererFunc
    """
    return object

def context_set_font_options(context=None, options=None):
    """    Sets the font options used when rendering text with this context.
    These options override any options that pango_cairo_update_context()
    derives from the target surface.
    @param context: a #PangoContext, from a pangocairo font map
    @param options: a #cairo_font_options_t, or %NULL to unset           any previously set options. A copy is made.
    @type context: Pango.Context
    @type options: cairo.FontOptions
    @returns: 
    @rtype: None
    """
    return object

def context_set_resolution(context=None, dpi=None):
    """    Sets the resolution for the context. This is a scale factor between
    points specified in a #PangoFontDescription and Cairo units. The
    default value is 96, meaning that a 10 point font will be 13
    units high. (10 * 96. / 72. = 13.3).
    @param context: a #PangoContext, from a pangocairo font map
    @param dpi: the resolution in "dots per inch". (Physical inches aren't actually   involved; the terminology is conventional.) A 0 or negative value   means to use the resolution from the font map.
    @type context: Pango.Context
    @type dpi: float
    @returns: 
    @rtype: None
    """
    return object

def context_set_shape_renderer(context=None, func=None, data=None, dnotify=None):
    """    Sets callback function for context to use for rendering attributes
    of type %PANGO_ATTR_SHAPE.  See #PangoCairoShapeRendererFunc for
    details.
    @param context: a #PangoContext, from a pangocairo font map
    @param func: Callback function for rendering attributes of        type %PANGO_ATTR_SHAPE, or %NULL to disable shape rendering.
    @param data: User data that will be passed to @func.
    @param dnotify: Callback that will be called when the           context is freed to release @data, or %NULL.
    @type context: Pango.Context
    @type func: ShapeRendererFunc
    @type data: gpointer
    @type dnotify: GLib.DestroyNotify
    @returns: 
    @rtype: None
    """
    return object

def create_context(cr=None):
    """    Creates a context object set up to match the current transformation
    and target surface of the Cairo context.  This context can then be
    used to create a layout using pango_layout_new().
    
    This function is a convenience function that creates a context using
    the default font map, then updates it to @cr.  If you just need to
    create a layout for use with @cr and do not need to access #PangoContext
    directly, you can use pango_cairo_create_layout() instead.
    @param cr: a Cairo context
    @type cr: cairo.Context
    @returns: the newly created #PangoContext. Free with
   g_object_unref().
    @rtype: Pango.Context
    """
    return object

def create_layout(cr=None):
    """    Creates a layout object set up to match the current transformation
    and target surface of the Cairo context.  This layout can then be
    used for text measurement with functions like
    pango_layout_get_size() or drawing with functions like
    pango_cairo_show_layout(). If you change the transformation
    or target surface for @cr, you need to call pango_cairo_update_layout()
    
    This function is the most convenient way to use Cairo with Pango,
    however it is slightly inefficient since it creates a separate
    #PangoContext object for each layout. This might matter in an
    application that was laying out large amounts of text.
    @param cr: a Cairo context
    @type cr: cairo.Context
    @returns: the newly created #PangoLayout. Free with
   g_object_unref().
    @rtype: Pango.Layout
    """
    return object

def error_underline_path(cr=None, x=None, y=None, width=None, height=None):
    """    Add a squiggly line to the current path in the specified cairo context that
    approximately covers the given rectangle in the style of an underline used
    to indicate a spelling error.  (The width of the underline is rounded to an
    integer number of up/down segments and the resulting rectangle is centered
    in the original rectangle)
    @param cr: a Cairo context
    @param x: The X coordinate of one corner of the rectangle
    @param y: The Y coordinate of one corner of the rectangle
    @param width: Non-negative width of the rectangle
    @param height: Non-negative height of the rectangle
    @type cr: cairo.Context
    @type x: float
    @type y: float
    @type width: float
    @type height: float
    @returns: 
    @rtype: None
    """
    return object

def font_map_get_default():
    """    Gets a default #PangoCairoFontMap to use with Cairo.
    
    Note that the type of the returned object will depend
    on the particular font backend Cairo was compiled to use;
    You generally should only use the #PangoFontMap and
    #PangoCairoFontMap interfaces on the returned object.
    
    The default Cairo fontmap can be changed by using
    pango_cairo_font_map_set_default().  This can be used to
    change the Cairo font backend that the default fontmap
    uses for example.
    
    Note that since Pango 1.32.6, the default fontmap is per-thread.
    Each thread gets its own default fontmap.  In this way,
    PangoCairo can be used safely from multiple threads.
    @returns: the default PangoCairo fontmap  for the current thread. This object is owned by Pango and must not be freed.
    @rtype: Pango.FontMap
    """
    return object

def font_map_new():
    """    Creates a new #PangoCairoFontMap object; a fontmap is used
    to cache information about available fonts, and holds
    certain global parameters such as the resolution.
    In most cases, you can use pango_cairo_font_map_get_default()
    instead.
    
    Note that the type of the returned object will depend
    on the particular font backend Cairo was compiled to use;
    You generally should only use the #PangoFontMap and
    #PangoCairoFontMap interfaces on the returned object.
    
    You can override the type of backend returned by using an
    environment variable %PANGOCAIRO_BACKEND.  Supported types,
    based on your build, are fc (fontconfig), win32, and coretext.
    If requested type is not available, NULL is returned. Ie.
    this is only useful for testing, when at least two backends
    are compiled in.
    @returns: the newly allocated #PangoFontMap,
               which should be freed with g_object_unref().
    @rtype: Pango.FontMap
    """
    return object

def font_map_new_for_font_type(fonttype=None):
    """    Creates a new #PangoCairoFontMap object of the type suitable
    to be used with cairo font backend of type @fonttype.
    
    In most cases one should simply use @pango_cairo_font_map_new(),
    or in fact in most of those cases, just use
    @pango_cairo_font_map_get_default().
    @param fonttype: desired #cairo_font_type_t
    @type fonttype: cairo.FontType
    @returns: the newly allocated
               #PangoFontMap of suitable type which should be freed
               with g_object_unref(), or %NULL if the requested
               cairo font backend is not supported / compiled in.
    @rtype: Pango.FontMap
    """
    return object

def glyph_string_path(cr=None, font=None, glyphs=None):
    """    Adds the glyphs in @glyphs to the current path in the specified
    cairo context. The origin of the glyphs (the left edge of the baseline)
    will be at the current point of the cairo context.
    @param cr: a Cairo context
    @param font: a #PangoFont from a #PangoCairoFontMap
    @param glyphs: a #PangoGlyphString
    @type cr: cairo.Context
    @type font: Pango.Font
    @type glyphs: Pango.GlyphString
    @returns: 
    @rtype: None
    """
    return object

def layout_line_path(cr=None, line=None):
    """    Adds the text in #PangoLayoutLine to the current path in the
    specified cairo context.  The origin of the glyphs (the left edge
    of the line) will be at the current point of the cairo context.
    @param cr: a Cairo context
    @param line: a #PangoLayoutLine
    @type cr: cairo.Context
    @type line: Pango.LayoutLine
    @returns: 
    @rtype: None
    """
    return object

def layout_path(cr=None, layout=None):
    """    Adds the text in a #PangoLayout to the current path in the
    specified cairo context.  The top-left corner of the #PangoLayout
    will be at the current point of the cairo context.
    @param cr: a Cairo context
    @param layout: a Pango layout
    @type cr: cairo.Context
    @type layout: Pango.Layout
    @returns: 
    @rtype: None
    """
    return object

def show_error_underline(cr=None, x=None, y=None, width=None, height=None):
    """    Draw a squiggly line in the specified cairo context that approximately
    covers the given rectangle in the style of an underline used to indicate a
    spelling error.  (The width of the underline is rounded to an integer
    number of up/down segments and the resulting rectangle is centered in the
    original rectangle)
    @param cr: a Cairo context
    @param x: The X coordinate of one corner of the rectangle
    @param y: The Y coordinate of one corner of the rectangle
    @param width: Non-negative width of the rectangle
    @param height: Non-negative height of the rectangle
    @type cr: cairo.Context
    @type x: float
    @type y: float
    @type width: float
    @type height: float
    @returns: 
    @rtype: None
    """
    return object

def show_glyph_item(cr=None, text=None, glyph_item=None):
    """    Draws the glyphs in @glyph_item in the specified cairo context,
    embedding the text associated with the glyphs in the output if the
    output format supports it (PDF for example), otherwise it acts
    similar to pango_cairo_show_glyph_string().
    
    The origin of the glyphs (the left edge of the baseline) will
    be drawn at the current point of the cairo context.
    
    Note that @text is the start of the text for layout, which is then
    indexed by <literal>@glyph_item->item->offset</literal>.
    @param cr: a Cairo context
    @param text: the UTF-8 text that @glyph_item refers to
    @param glyph_item: a #PangoGlyphItem
    @type cr: cairo.Context
    @type text: str
    @type glyph_item: Pango.GlyphItem
    @returns: 
    @rtype: None
    """
    return object

def show_glyph_string(cr=None, font=None, glyphs=None):
    """    Draws the glyphs in @glyphs in the specified cairo context.
    The origin of the glyphs (the left edge of the baseline) will
    be drawn at the current point of the cairo context.
    @param cr: a Cairo context
    @param font: a #PangoFont from a #PangoCairoFontMap
    @param glyphs: a #PangoGlyphString
    @type cr: cairo.Context
    @type font: Pango.Font
    @type glyphs: Pango.GlyphString
    @returns: 
    @rtype: None
    """
    return object

def show_layout(cr=None, layout=None):
    """    Draws a #PangoLayout in the specified cairo context.
    The top-left corner of the #PangoLayout will be drawn
    at the current point of the cairo context.
    @param cr: a Cairo context
    @param layout: a Pango layout
    @type cr: cairo.Context
    @type layout: Pango.Layout
    @returns: 
    @rtype: None
    """
    return object

def show_layout_line(cr=None, line=None):
    """    Draws a #PangoLayoutLine in the specified cairo context.
    The origin of the glyphs (the left edge of the line) will
    be drawn at the current point of the cairo context.
    @param cr: a Cairo context
    @param line: a #PangoLayoutLine
    @type cr: cairo.Context
    @type line: Pango.LayoutLine
    @returns: 
    @rtype: None
    """
    return object

def update_context(cr=None, context=None):
    """    Updates a #PangoContext previously created for use with Cairo to
    match the current transformation and target surface of a Cairo
    context. If any layouts have been created for the context,
    it's necessary to call pango_layout_context_changed() on those
    layouts.
    @param cr: a Cairo context
    @param context: a #PangoContext, from a pangocairo font map
    @type cr: cairo.Context
    @type context: Pango.Context
    @returns: 
    @rtype: None
    """
    return object

def update_layout(cr=None, layout=None):
    """    Updates the private #PangoContext of a #PangoLayout created with
    pango_cairo_create_layout() to match the current transformation
    and target surface of a Cairo context.
    @param cr: a Cairo context
    @param layout: a #PangoLayout, from pango_cairo_create_layout()
    @type cr: cairo.Context
    @type layout: Pango.Layout
    @returns: 
    @rtype: None
    """
    return object


class Font():
    """#PangoCairoFont is an interface exported by fonts for
use with Cairo. The actual type of the font will depend
on the particular font technology Cairo was compiled to use."""
    
    def get_scaled_font(self):
        """        Gets the #cairo_scaled_font_t used by @font.
        The scaled font can be referenced and kept using
        cairo_scaled_font_reference().
        @returns: the #cairo_scaled_font_t used by @font,
               or %NULL if @font is %NULL.
        @rtype: cairo.ScaledFont
        """
        return object


class FontMap():
    """#PangoCairoFontMap is an interface exported by font maps for
use with Cairo. The actual type of the font map will depend
on the particular font technology Cairo was compiled to use."""
    @staticmethod
    def get_default():
        """        Gets a default #PangoCairoFontMap to use with Cairo.
        
        Note that the type of the returned object will depend
        on the particular font backend Cairo was compiled to use;
        You generally should only use the #PangoFontMap and
        #PangoCairoFontMap interfaces on the returned object.
        
        The default Cairo fontmap can be changed by using
        pango_cairo_font_map_set_default().  This can be used to
        change the Cairo font backend that the default fontmap
        uses for example.
        
        Note that since Pango 1.32.6, the default fontmap is per-thread.
        Each thread gets its own default fontmap.  In this way,
        PangoCairo can be used safely from multiple threads.
        @returns: the default PangoCairo fontmap  for the current thread. This object is owned by Pango and must not be freed.
        @rtype: Pango.FontMap
        """
        return object
    @staticmethod
    def new():
        """        Creates a new #PangoCairoFontMap object; a fontmap is used
        to cache information about available fonts, and holds
        certain global parameters such as the resolution.
        In most cases, you can use pango_cairo_font_map_get_default()
        instead.
        
        Note that the type of the returned object will depend
        on the particular font backend Cairo was compiled to use;
        You generally should only use the #PangoFontMap and
        #PangoCairoFontMap interfaces on the returned object.
        
        You can override the type of backend returned by using an
        environment variable %PANGOCAIRO_BACKEND.  Supported types,
        based on your build, are fc (fontconfig), win32, and coretext.
        If requested type is not available, NULL is returned. Ie.
        this is only useful for testing, when at least two backends
        are compiled in.
        @returns: the newly allocated #PangoFontMap,
               which should be freed with g_object_unref().
        @rtype: Pango.FontMap
        """
        return object
    @staticmethod
    def new_for_font_type(fonttype=None):
        """        Creates a new #PangoCairoFontMap object of the type suitable
        to be used with cairo font backend of type @fonttype.
        
        In most cases one should simply use @pango_cairo_font_map_new(),
        or in fact in most of those cases, just use
        @pango_cairo_font_map_get_default().
        @param fonttype: desired #cairo_font_type_t
        @type fonttype: cairo.FontType
        @returns: the newly allocated
               #PangoFontMap of suitable type which should be freed
               with g_object_unref(), or %NULL if the requested
               cairo font backend is not supported / compiled in.
        @rtype: Pango.FontMap
        """
        return object
    
    def create_context(self):
        """        Create a #PangoContext for the given fontmap.
        @returns: the newly created context; free with g_object_unref().
        @rtype: Pango.Context
        """
        return object
    
    def get_font_type(self):
        """        Gets the type of Cairo font backend that @fontmap uses.
        @returns: the #cairo_font_type_t cairo font backend type
        @rtype: cairo.FontType
        """
        return object
    
    def get_resolution(self):
        """        Gets the resolution for the fontmap. See pango_cairo_font_map_set_resolution()
        @returns: the resolution in "dots per inch"
        @rtype: float
        """
        return object
    
    def set_default(self):
        """        Sets a default #PangoCairoFontMap to use with Cairo.
        
        This can be used to change the Cairo font backend that the
        default fontmap uses for example.  The old default font map
        is unreffed and the new font map referenced.
        
        Note that since Pango 1.32.6, the default fontmap is per-thread.
        This function only changes the default fontmap for
        the current thread.   Default fontmaps of exisiting threads
        are not changed.  Default fontmaps of any new threads will
        still be created using pango_cairo_font_map_new().
        
        A value of %NULL for @fontmap will cause the current default
        font map to be released and a new default font
        map to be created on demand, using pango_cairo_font_map_new().
        @returns: 
        @rtype: None
        """
        return object
    
    def set_resolution(self, dpi=None):
        """        Sets the resolution for the fontmap. This is a scale factor between
        points specified in a #PangoFontDescription and Cairo units. The
        default value is 96, meaning that a 10 point font will be 13
        units high. (10 * 96. / 72. = 13.3).
        @param dpi: the resolution in "dots per inch". (Physical inches aren't actually   involved; the terminology is conventional.)
        @type dpi: float
        @returns: 
        @rtype: None
        """
        return object


class FcFontMap(Pango.FontMap, FontMap):
    """"""

    @property
    def parent_instance(self):
        return object

    @property
    def serial(self):
        return object

    @property
    def dpi(self):
        return object

    @property
    def library(self):
        return object
